import {getPath} from './util'

const RouterOthers = [
  {
    path: getPath('/auth-failed'),
    name: 'auth-failed',
    component: resolve => require([`@/pages/others/auth-failed`], resolve),
    meta: {
      requireAuth: false
    }
  },
  {
    path: getPath('/landing-page'),
    name: 'landing-page',
    component: resolve => require([`@/pages/others/landing/landing-page`], resolve),
    meta: {
      requireAuth: false
    }
  },
  {
    path: getPath('/transfer-page'),
    name: 'transfer-page',
    component: resolve => require([`@/pages/others/transfer-page/transfer-page`], resolve),
    meta: {
      requireAuth: false
    }
  },
  {
    path: getPath('/package-list'),
    name: 'package-list',
    component: resolve => require([`@/pages/others/package/package-list`], resolve),
    meta: {
      requireAuth: false
    }
  },
  {
    path: getPath('/package-buy'),
    name: 'package-buy',
    component: resolve => require([`@/pages/others/package/package-buy`], resolve),
    meta: {
      requireAuth: false
    }
  },
  {
    path: getPath('/feedback'),
    name: 'feedback',
    component: resolve => require([`@/pages/others/feedback`], resolve),
    meta: {
      title: '问题反馈',
    }
  },
  {
    path: getPath('/myinfo'),
    name: 'myinfo',
    component: resolve => require([`@/pages/others/myinfo/index`], resolve),
    meta: {
      title: '我的信息',
    }
  },
  {
    path: getPath('/edit_city'),
    name: 'editcity',
    component: resolve => require([`@/pages/others/myinfo/edit_city`], resolve),
    meta: {
      title: '选择城市'
    }
  },
  {
    path: getPath('/mandatory/mandatory-bind'),
    name: 'mandatory',
    component: resolve => require([`@/pages/others/mandatory/mandatory-bind`], resolve),
    meta: {
      requireAuth: false,
      title:'绑定手机号'
    }
  },
  {
    path: getPath('/notInvolved'),
    name: 'notInvolved',
    component: resolve => require([`@/pages/others/notInvolved/notInvolved`], resolve),
    meta: {
      ignoreEnterprise: true,
      title:'未加入企业'
    }
  },
  {
    path: '/activate-course',
    name: 'activate-course',
    component: resolve => require([`@/pages/others/activate/activate-course`], resolve),
    meta: {
      requireAuth: false,
      title:'验证激活课程'
    }
  },
  {
    path: getPath('/purchase/result/:type/:payType/:targetId'),
    name: 'purchase/result',
    component: resolve => require([`@/pages/others/purchase/result`], resolve),
    meta: {
      title:'支付结果',
      requireAuth: false,
      hideHeader: true
    }
  },
  {
    path: '/pics/:key',
    name: 'pics',
    component: resolve => require([`@/pages/others/pics`], resolve),
    meta: {
      requireAuth: false,
      hideHeader: true
    }
  },
  {
    path: '/userServiceAgreement',
    name: 'userServiceAgreement',
    component: resolve => require([`@/pages/others/userServiceAgreement`], resolve),
    meta: {
      title: '用户服务协议'
    }
  },
];

export default RouterOthers
